package com.lagou.edu.ad;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.lagou.edu.ad.mapper") // java接口
public class LagouAdApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(LagouAdApplication.class, args);
        System.out.println("服务启动完成，当前环境为：" + run.getEnvironment().getProperty("env"));
    }

}
